package cn.sfrog.project.biz.admin.service;


import cn.sfrog.project.biz.admin.domain.BizDepartment;
import cn.sfrog.project.biz.admin.domain.vo.BizDepartmentFormVO;
import cn.sfrog.project.biz.admin.domain.vo.BizDepartmentQueryVO;
import cn.sfrog.project.biz.admin.domain.vo.BizDepartmentVO;
import cn.sfrog.project.biz.web.vo.index.*;
import cn.sfrog.system.domain.vo.BizStatusChangeVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 科室Service接口
 */
public interface IBizDepartmentService extends IService<BizDepartment> {
    /**
     * 查询科室
     *
     * @param id 科室主键
     * @return 科室
     */
    public BizDepartmentVO selectBizDepartmentById(Long id);

    /**
     * 查询科室列表
     *
     * @param query 科室
     * @return 科室集合
     */
    public List<BizDepartmentVO> selectBizDepartmentList(BizDepartmentQueryVO query);

    /**
     * 新增科室
     *
     * @param form 科室
     * @return 结果
     */
    public boolean insertBizDepartment(BizDepartmentFormVO form);

    /**
     * 修改科室
     *
     * @param form 科室
     * @return 结果
     */
    public boolean updateBizDepartment(BizDepartmentFormVO form);

    /**
     * 批量删除科室
     *
     * @param ids 需要删除的科室主键集合
     * @return 结果
     */
    public boolean deleteBizDepartmentByIds(Long[] ids);

    /**
     * 更改状态
     *
     * @param vo 更改状态表单
     * @return 结果
     */
    boolean changeStatus(BizStatusChangeVO vo);

    /**
     * APP-查询医院下的所有科室
     * @param id
     * @return
     */
    List<AppDepartmentResultVO> selectAppDepartmentListByHospitalId(Long id);

    /**
     * APP-查询科室详情
     * @param id
     * @return
     */
    AppDepartmentDetailResultVO selectAppDepartmentDetail(Long id);

    /**
     * APP-查询所有医院下的所有科室
     * @return
     */
    List<AppDepartmentNameResultVO> selectAppAllDepartmentList();
    List<AppDepartmentNameResultVO> selectAppAllDepartmentListByCityCode(String cityCode);


    List<AppFirstDepartmentNameResultVO> getFirstDepartmentList(Long hospitalId);


    List<AppDepartmentNameResultVO> getSecondDepartmentList(AppDepartmentParentQueryVO parentQueryVO);
}
